package com.example.his.api.app.controller;

import cn.dev33.satoken.annotation.SaCheckLogin;
import com.example.his.api.app.service.FlowRegulationService;
import com.example.his.api.common.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.ArrayList;

@RestController("AppFlowRegulationController")
@RequestMapping("/app/flowRegulation")
public class FlowRegulationController {
  @Resource
  private FlowRegulationService flowRegulationService;
  
  @GetMapping("/searchRecommendedPlace")
  public R searchRecommendedPlace() {
    ArrayList list = flowRegulationService.searchRecommendedPlace();
    return R.ok().put("result", list);
  }
}
